package cn.sailing.plugins.position;

import android.content.Context;

import cn.sailing.plugins.position.amap.AMapTrackService;
import cn.sailing.plugins.position.baidu.BaiduTrackService;
import cn.sailing.plugins.position.tencent.TencentTrackService;

public class TrackService {
    TencentTrackService tencent_service;
    AMapTrackService amap_service;
    BaiduTrackService baidu_service;

    public void Init(Context ctx, ITrackListener listener) {
//        tencent_service = new TencentTrackService(ctx, pusher);
        amap_service = new AMapTrackService(ctx, listener);
        baidu_service = new BaiduTrackService(ctx, listener);
    }

    public void StartTrack() {
        amap_service.Start();
        baidu_service.Start();
    }

    public void StopTrack() {
        amap_service.Stop();
        baidu_service.Stop();
    }
}
